package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
//自动读取配置文件application.yml中的属性
@Component
@ConfigurationProperties(prefix = "sky.alioss") //根据配置文件sky.alioss中的信息完成属性的赋值
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
